// part1:C09:ex9.13.cpp
#include <cstdarg>
#include <iostream>
#include <vector>
#include <list>
using namespace std;

int main(void){
  list<int> ilist = {1, 2, 3, 4, 5, 6, 7};
  vector<int> ivec = {7, 6, 5, 5, 3, 2, 1};
  vector<double> dvec(ilist.begin(), ilist.end());
  //vector<double> dvec1(ivec);
  vector<double> dvec1(ivec.begin(), ivec.end());
  cout << dvec.capacity() << " " << dvec.size() << " "
       << dvec[0] << " " << dvec[dvec.size() - 1] << endl;
  cout << dvec1.capacity() << " " << dvec1.size() << " "
       << dvec1[0] << " " << dvec1[dvec1.size() - 1] << endl;
  
  return 0;
}
